home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / include / sun4.md / float.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-25  |  1.1 KB  |  48 lines

  1. /*
  2.  * floats.h --
  3.  *
  4.  *    Declares machine-dependent floating point characteristics.
  5.  *
  6.  * Copyright 1988 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  *
  15.  * $Header$
  16.  */
  17.  
  18. #ifndef _FLOAT_H
  19. #define _FLOAT_H
  20.  
  21. #define FLT_RADIX       2
  22. #define FLT_ROUNDS      1
  23.  
  24. #define FLT_DIG         6
  25. #define DBL_DIG         15
  26.  
  27. #define FLT_EPSILON     1.19209290e-07
  28. #define DBL_EPSILON     1.1102230246251565e-16
  29.  
  30. #define FLT_MANT_DIG    24
  31. #define DBL_MANT_DIG    53
  32.  
  33. #define FLT_MAX         3.40282347e+38
  34. #define DBL_MAX         1.797693134862316e+308
  35.  
  36.  
  37. #define FLT_MAX_EXP     128
  38. #define DBL_MAX_EXP     1024
  39.  
  40. #define FLT_MIN         1.17549435e-38
  41. #define DBL_MIN         2.225073858507201e-308
  42.  
  43. #define FLT_MIN_EXP     (-125)
  44. #define DBL_MIN_EXP     (-1021)
  45.  
  46. #endif /* _FLOAT_H */
  47.  
  48.